package com.njworkorder.Service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.njworkorder.DTO.SelectDTO.SelectCORList;
import com.njworkorder.Entity.ConstructionOccupyingRoad;
import com.njworkorder.Service.ConstructionOccupyingRoadService;
import com.njworkorder.Mapper.ConstructionOccupyingRoadMapper;
import com.njworkorder.VO.CORListVo;
import org.springframework.stereotype.Service;

/**
* @author iron
* @description 针对表【construction_occupying_road】的数据库操作Service实现
* @createDate 2024-12-28 15:03:26
*/
@Service
public class ConstructionOccupyingRoadServiceImpl extends MPJBaseServiceImpl<ConstructionOccupyingRoadMapper, ConstructionOccupyingRoad>
    implements ConstructionOccupyingRoadService{

    private final ConstructionOccupyingRoadMapper corMapper;
    public ConstructionOccupyingRoadServiceImpl(ConstructionOccupyingRoadMapper corMapper){
        this.corMapper = corMapper;
    }

    @Override
    public IPage<CORListVo> getList(SelectCORList selectCORList) {
        Page<Object> objectPage = new Page<>(selectCORList.getPageIndex(), selectCORList.getPageSize());
        return corMapper.getList(objectPage,selectCORList);
    }
}




